package ru.stool.erp.model.utils;

import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;

public class HybernateUtils {
	
	private static final SessionFactory sessionFactory;
	
	static{
		Configuration config=new Configuration();
		sessionFactory=config.configure().buildSessionFactory();
	}
	
	private HybernateUtils(){
		
	}
	
	public static SessionFactory getSessionFactory(){
		return sessionFactory;
	}
	
	
}
